package com.share.schedule.simple.model.db;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 2020-12-04
 * ts_schedule_job
 */

@Data
@ApiModel("")
public class ScheduleJob implements Serializable {
    /**
     * 主键
     */
	@ApiModelProperty("主键")
    private Integer id;

    /**
     * 定时任务代码
     */
	@ApiModelProperty("定时任务代码")
    private String jobCode;

    /**
     * 定时任务名称
     */
	@ApiModelProperty("定时任务名称")
    private String jobName;

    /**
     * 任务状态0:空闲,1执行中
     */
	@ApiModelProperty("任务状态0:无效任务,1执行中,2空闲")
    private Integer jobStatus;

    /**
     * 运行时间表达式
     */
	@ApiModelProperty("运行时间表达式")
    private String cronExpress;

    /**
     * 表达式描述
     */
	@ApiModelProperty("表达式描述")
    private String expressDescrip;

    /**
     * 锁状态:0被锁,1空闲
     */
	@ApiModelProperty("锁状态:0被锁,1空闲")
    private Integer lockStatus;

    /**
     * 获取到锁的开始时间
     */
	@ApiModelProperty("获取到锁的开始时间")
    private Date lockTime;

    /**
     * 锁的过期时间(单位是秒)
     */
	@ApiModelProperty("锁的过期时间(单位是秒)")
    private Integer lockExpire;

    /**
     * 备注
     */
	@ApiModelProperty("备注")
    private Date createTime;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getJobCode() {
        return jobCode;
    }

    public void setJobCode(String jobCode) {
        this.jobCode = jobCode == null ? null : jobCode.trim();
    }

    public String getJobName() {
        return jobName;
    }

    public void setJobName(String jobName) {
        this.jobName = jobName == null ? null : jobName.trim();
    }

    public Integer getJobStatus() {
        return jobStatus;
    }

    public void setJobStatus(Integer jobStatus) {
        this.jobStatus = jobStatus;
    }

    public String getCronExpress() {
        return cronExpress;
    }

    public void setCronExpress(String cronExpress) {
        this.cronExpress = cronExpress == null ? null : cronExpress.trim();
    }

    public String getExpressDescrip() {
        return expressDescrip;
    }

    public void setExpressDescrip(String expressDescrip) {
        this.expressDescrip = expressDescrip == null ? null : expressDescrip.trim();
    }

    public Integer getLockStatus() {
        return lockStatus;
    }

    public void setLockStatus(Integer lockStatus) {
        this.lockStatus = lockStatus;
    }

    public Date getLockTime() {
        return lockTime;
    }

    public void setLockTime(Date lockTime) {
        this.lockTime = lockTime;
    }

    public Integer getLockExpire() {
        return lockExpire;
    }

    public void setLockExpire(Integer lockExpire) {
        this.lockExpire = lockExpire;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}